// 毛玻璃
// 按顺序传参数 或者 和声明一样的方式传
@mixin gglass-t1($bgin-color: rgba(255, 255, 255, 0.133)) {
  border-radius: 20px;
  background: linear-gradient($bgin-color, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px); // 模糊化处理
}

@mixin relative {
  position: relative;
  display: flex;
}

@mixin absolute {
  position: absolute;
  display: flex;
}

@mixin relative_hw($height: 100%, $width: 100%) {
  @include relative;
  height: $height;
  width: $width;
}

@mixin absolute_hw($height: 100%, $width: 100%) {
  @include absolute;
  height: $height;
  width: $width;
}

@mixin rel_center {
  @include relative;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@mixin rel_cen_hw($height: 100%, $width: 100%) {
  @include rel_center;
  height: $height;
  width: $width;
}

// 设置字符串显示长度限制和行数限制
@mixin text_limit($line: 2, $length: 200px) {
  width: $length; /* 指定容器的宽度 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: $line; /* 限制显示2行 */
  overflow: hidden; /* 超出部分隐藏 */
  text-overflow: ellipsis; /* 超出部分显示省略号 */
  text-align: left;
}
